#include<iostream>
using namespace std;

short int MinData;
short int MaxData;
short int i;

int main()
{
  MinData = -32768;
  MinData = MinData * MinData;
    cout << "Answer is " << MinData << endl;
  if (MinData >= 0)
    cout << "YES!";
  else
    cout << "NO!";

  MaxData = 32767;
  MaxData = MaxData * MaxData;
     cout << "\nAnswer is " << MaxData << endl;
  if (MaxData >= 0)
    cout << "YES!";
  else
    cout << "NO!";

   cout << "\nEnter a number: ";
   cin >> i;
   i = i * i;
      cout << "Answer is " << i << endl;
   if (i >= 0)
    cout << "YES!";
  else
    cout << "NO!";

    return 0;
}
